import request from '@/utils/request'

// 查询远程开闸记录列表
export function listRecordGate(query) {
  return request({
    url: '/parking/recordGate/list',
    method: 'get',
    params: query
  })
}

// 查询远程开闸记录详细
export function getRecordGate(id) {
  return request({
    url: '/parking/recordGate/' + id,
    method: 'get'
  })
}

// 新增远程开闸记录
export function addRecordGate(data) {
  return request({
    url: '/parking/recordGate',
    method: 'post',
    data: data
  })
}

// 修改远程开闸记录
export function updateRecordGate(data) {
  return request({
    url: '/parking/recordGate',
    method: 'put',
    data: data
  })
}

// 删除远程开闸记录
export function delRecordGate(id) {
  return request({
    url: '/parking/recordGate/' + id,
    method: 'delete'
  })
}
